// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import router from './router'
import VueRouter from 'vue-router'
import HelloWorld from './components/HelloWorld'
import index from './components/index'
import Users from './components/Users'
import Header from './components/Header'
import Mine from './components/Mine'
import More from './components/more'
import Setting from './components/setting'
import Start from './components/Start'
import Transfer from './components/Transfer'
import Friends from './components/Friends'
import  Small from './components/Small'
import  Life from  './components/Life'
import New from './components/New'
import  Management from './components/Management'
import Language from './components/Language'
import Balance from './components/Balance'
import  Recharge from './components/Recharge'
import  Put from './components/Put'
import  Detailed from './components/Detailed'
import  Success from './components/Success'
import  Bring from './components/Bring'
import Service from './components/Service'
import Personal from './components/Personal'
import Chat from './components/Chat'

Vue.config.productionTip = false
Vue.use(VueRouter)

//配置路由
const router=new VueRouter({
  routes:[
    {path:'/',component:index},
    {path:'/helloworld',component:HelloWorld},
    {path:'/users',component:Users},
    {path:'/Header',component:Header},
    {path:'/Mine',component:Mine},
    {path:'/More',component:More},
    {path:'/Setting',component:Setting},
    {path:'/Start',component:Start},
    {path:'/Friends',component:Friends},
    {path:"/Small",component:Small},
    {path:"/Life",component:Life},
    {path:"/New",component:New},
    {path:"/Management",component:Management},
    {path:"/Language",component:Language},
    {path:"/Transfer",component:Transfer},
    {path:"/Balance",component:Balance},
    {path:"/Recharge",component:Recharge},
    {path:"/Put",component:Put},
    {path:"/Detailed",component:Detailed},
    {path:"/Success",component:Success},
    {path:"/Bring", component:Bring},
    {path:"/Service",component:Service},
    {path:"/Personal",component:Personal},
    {path:"/Chat",component:Chat}
  ],
  mode:"history"
})
//全局注册组件
// Vue.components("users",Users);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
